import request from '@/router/axios';
 

export const getInstances = (params) => {
  return request({
    url: '/api/nacos/instances',
    method: 'get',
    params: {
      ...params
    }
  })
}


export const getDefaultPort = (params) => {
  return request({
    url: '/api/nacos/getDefaultPort',
    method: 'get',
    params: {
      ...params
    }
  })
}


export const unable = (params) => {
  return request({
    url: '/api/nacos/unable',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const enable = (params) => {
  return request({
    url: '/api/nacos/enable',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const stop = (params) => {
  return request({
    url: '/api/package/manage/backStopModule',
    method: 'get',
    params: {
      ...params
    }
  })
}


  
